Skip to main content

Set GPU Node to Low Priority When Non-Tdarr NVENC Detected

Set GPU Node to Low Priority When Non-Tdarr NVENC Detected (v1.0.0)

Polls nvidia-smi for non-Tdarr NVENC encoder processes. When detected, sets ffmpeg/HandBrake to low process priority. Restores priority when non-Tdarr NVENC processes stop. Exits when no other Tdarr workers are running (confirmed 3 times).

View Source

Inputs:

Name: Poll Interval (seconds) 

Type: number

Tooltip:

How often to check for non-Tdarr NVENC processes.
Name: Low Priority 

Type: string

Tooltip:

Priority to set when non-Tdarr NVENC processes are detected.
Name: Normal Priority 

Type: string

Tooltip:

Priority to restore when non-Tdarr NVENC processes stop.

Outputs:

1: No other workers running - safe to continue